import axios from "~/axios"
import { queryParams } from "~/composables/util"

// 获取管理员列表接口
export function getGoodsCommentList(page, query = {}) {
    let r = queryParams(query)
    return axios.get(`/admin/goods_comment/${page}${r}`)
}

// 修改管理员状态接口
export function updateGoodsCommentStatus(id, status) {
    return axios.post(`/admin/goods_comment/${id}/update_status`, {
        status
    })
}

// 审核商品评论接口
export function reviewGoodsComment(id, data) {
    return axios.post(`/admin/goods_comment/review/${id}`, {
        data
    })
}